package ua.kpi.fpm.km61.strat.sp.rules;

public class Rule {

    private NonTerminal in;
    
    private Chain chain = new Chain();

    public Rule(NonTerminal in, Chain out) {
	super();
	this.in = in;
	this.chain = out;
    }


    public NonTerminal getIn() {
        return in;
    }

    public void setIn(NonTerminal in) {
        this.in = in;
    }


    public Chain getChain() {
        return chain;
    }

    public void setChain(Chain chain) {
        this.chain = chain;
    }   
    
    public boolean isEps () {
        return this.chain.getOut().isEmpty() ;
    }
}